package org.tln.db137.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@TableName(value = "menu")
@ToString
@Component
public class Menu implements Serializable {
    /**
     * 菜单id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 标题
     */
    @TableField(value = "`label`")
    private String label;

    /**
     * 路径
     */
    @TableField(value = "href")
    private String href;

    /**
     * 上级id
     */
    @TableField(value = "parentid")
    private Integer parentid;

    /**
     * 图标
     */
    @TableField(value = "imgicon")
    private String imgicon;

    /**
     * 获取菜单id
     *
     * @return id - 菜单id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置菜单id
     *
     * @param id 菜单id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取标题
     *
     * @return label - 标题
     */
    public String getLabel() {
        return label;
    }

    /**
     * 设置标题
     *
     * @param label 标题
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * 获取路径
     *
     * @return href - 路径
     */
    public String getHref() {
        return href;
    }

    /**
     * 设置路径
     *
     * @param href 路径
     */
    public void setHref(String href) {
        this.href = href;
    }

    /**
     * 获取上级id
     *
     * @return parentid - 上级id
     */
    public Integer getParentid() {
        return parentid;
    }

    /**
     * 设置上级id
     *
     * @param parentid 上级id
     */
    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    /**
     * 获取图标
     *
     * @return imgicon - 图标
     */
    public String getImgicon() {
        return imgicon;
    }

    /**
     * 设置图标
     *
     * @param imgicon 图标
     */
    public void setImgicon(String imgicon) {
        this.imgicon = imgicon;
    }
}